package com.yeyks.commonReference.append.mattress.mongodb.service;

import com.yeyks.commonReference.append.mattress.mongodb.entity.MattressPayCallbackRecordMongoEntity;
import com.yeyks.commonReference.append.mattress.mongodb.repository.MattressPayCallbackRecordMongoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MattressPayCallbackRecordMongoService {

    @Autowired
    private MattressPayCallbackRecordMongoRepository mattressPayCallbackRecordMongoRepository;

    public void save(MattressPayCallbackRecordMongoEntity mattressPayCallbackRecordMongoEntity) {
        try {
            mattressPayCallbackRecordMongoRepository.save(mattressPayCallbackRecordMongoEntity);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
